<%@ page language="java" pageEncoding="utf8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />
	</head>
	<body style="">
		<div id="headBar" class="head_content"></div>
		<div id="main" class="main_content">
			<form class="tableform" id="model_form"
				action="sys_delivery_corp_save.html"
				method="post">
				<input type="hidden" name="orderDeliveryCorp.corpId"  value="${orderDeliveryCorp.corpId}" />
				<div class="division">
					<table width="100%" cellspacing="0" cellpadding="0" border="0">
						<tbody>
							<tr>
								<th>
									物流公司简写:
								</th>
								<td>
								<input type="text" class="_x_ipt" value="${orderDeliveryCorp.corpType }"
										 name="orderDeliveryCorp.corpType" style="width: 120px;" /> 如UPS， 
								</td>
							</tr>
							<tr>
								<th>
									物流公司全称:
								</th>
								<td>
									<input type="text"  class="_x_ipt"  value="${orderDeliveryCorp.corpName }"
										 name="orderDeliveryCorp.corpName" style="width: 120px;">
								</td>
							</tr>
							<tr>
								<th>
									物流公司网址:
								</th>
								<td>
									<input type="text"  value="${orderDeliveryCorp.corpWebsite}"
										style="width: 240px;" name="orderDeliveryCorp.corpWebsite"  />
								</td>
							</tr>
							<tr>
								<th>
									排序:
								</th>
								<td>
									<input type="text"  class="x-input _x_ipt"   value="${orderDeliveryCorp.corpShowOrder}"
										name="orderDeliveryCorp.corpShowOrder" style="width: 50px;"  />
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<table cellspacing="0" cellpadding="0" border="0" align="center"
					class="table-action">
					<tbody>
						<tr>
							<td>
								<div class="table-action">
									<button class="btn" type="submit">
										<span><span>提交</span>
										</span>
									</button>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
		<div id="footBar" class="foot_content"></div>



		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/jquery.validate.js'/>"></script>
		<script type="text/javascript">
	$(document).ready(function() {
		var validator = $("#model_form").validate( {
			errorElement : "div",
			errorClass : "x-vali-error",
			onfocusout : false,
			rules : {
				'orderDeliveryCorp.corpName' : "required",
				'orderDeliveryCorp.corpType' : "required",
				'orderDeliveryCorp.corpShowOrder' : "required",
				'orderDeliveryCorp.corpWebsite' : "required"
			},
			messages : {
				'orderDeliveryCorp.corpName' : "必填字段",
				'orderDeliveryCorp.corpType' : "必填字段",
				'orderDeliveryCorp.corpShowOrder' : "必填字段",
				'orderDeliveryCorp.corpWebsite' : "必填字段"
			},
			errorPlacement : function(error, element) {
				element.removeClass('x-vali-error');
				error.appendTo(element.parent());

			},

			success : function(div) {
				$(div).remove();
			}
		});
	});
</script>
	</body>
</html>